import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.Arrays;
import java.util.List;

public class ScratchPad {
	static int count;
	BufferedReader br;

	{
		br = new BufferedReader(new FileReader(new File("file.txt")));
		if (true)
			throw new IOException();
	}

	public ScratchPad(int count) throws IOException {
		int million = 1_000_000;
		switch (new String("asdf")) {
		case "Nagendra":
			break;
		case "Nandini":
			break;
		}
		throw new IOException();
	}

	public <T> void print(T... messages) {

	}

	<E extends Comparable<E>> void sort(List<E> list) {
		Comparable<E> c = list.get(0);
		Comparable<E>[] c_arr = (Comparable<E>[]) list.toArray();
		Arrays.sort(c_arr);

	}

	public static void main(String[] args) {

		List<Object> objs = new ArrayList<Object>();
		objs.add("String");
		objs.add(1);
		objs.add(3.14);

		List<? super Number> ints = objs;
		ints.add(3.14);
		ints.add((Integer) 3);

		try {
			methodException();
		} catch (CloneNotSupportedException | IOException e) {
			// TODO Auto-generated catch block

			e.printStackTrace();
		}

		try (BufferedReader br = new BufferedReader(new FileReader(new File(
				"file.txt")))) {

		} catch (ArithmeticException | IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

	public static void methodException() throws IOException,
			CloneNotSupportedException {

	}

}
